package com.lagou.edu.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class TestMethodService implements Runnable {

    @Autowired
    private ConsumerComponent consumerComponent;


    @Override
    public void run() {
        try {
            String s = consumerComponent.randomMethod();
            System.out.println("请求结果：" + s);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
